<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://myfaces.apache.org/sandbox"
                xmlns:jwork="http://irian.at/jsfatwork"
        >
    <ui:define name="content">
        <h:form id="cform">
            <h3>Project</h3>
            <jwork:addNewGrid bean="#{projectBean}" entity="#{projectBean.entity}" entityName="project" idSave="save" >
                <ui:define name="inputFields" >
                    <jwork:inputText property="name" size="30"/>
                    <jwork:inputTextarea property="description" cols="30" rows="3"/>
                </ui:define>
            </jwork:addNewGrid>

            <br/>

            <jwork:dataList partialTriggers="save" editProperty="name" contentProperty="description" bean="#{projectBean}" >
                <ui:define name="inputFields" >
                    <jwork:inputText property="name" size="30"/>
                    <jwork:inputTextarea property="description" cols="30" rows="3"/>
                </ui:define>
            </jwork:dataList>

        </h:form>

    </ui:define>
</ui:composition>
